package com.design.cjm.behavioral.strategy.example1;

import com.design.cjm.behavioral.strategy.example1.impl.ConcreteStrategyA;
import com.design.cjm.behavioral.strategy.example1.impl.ConcreteStrategyB;
import com.design.cjm.behavioral.strategy.example1.impl.ConcreteStrategyC;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/17
 * @Version 1.0
 */
public class TestApp {


    public static void main(String[] args) {

        Context context = new Context(new ConcreteStrategyA());
        context.contextInterface();

        Context contextB = new Context(new ConcreteStrategyB());
        contextB.contextInterface();

        Context contextC = new Context(new ConcreteStrategyC());
        contextC.contextInterface();
    }
}
